package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Signin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SigninMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Signin record);
    Signin selectByPrimaryKey(Long id);
    List<Signin> selectAll();
    int updateByPrimaryKey(Signin record);
    List<Signin> queryYesterday(@Param("userId") Long userId);
    List<Signin> queryToday(@Param("userId") Long userId);
    List<Signin> getHistory(@Param("userId") Long userId);

    Integer getHistoryDays(Long userId);
}